package com.obas.integration.element.telnet.type;

import com.ease.common.enums.EnumUtil;
import com.ease.common.enums.TextualEnum;
import com.obas.type.PortFeatureType;

public enum HWS9303PortFeatureType implements TextualEnum {

	ETHERNET("Et", PortFeatureType.ETHERNET), EPON("GE", PortFeatureType.EPON);

	private String text;

	private PortFeatureType portFeatureType;

	private HWS9303PortFeatureType(String text, PortFeatureType portFeatureType) {
		this.text = text;
		this.portFeatureType = portFeatureType;
	}

	public static HWS9303PortFeatureType get(String name) {
		return EnumUtil.get(HWS9303PortFeatureType.class, name);
	}

	public static HWS9303PortFeatureType getByText(String text) {
		return EnumUtil.getByText(HWS9303PortFeatureType.class, text);
	}

	public String getName() {
		return name();
	}

	/**
	 * @return the text
	 */
	public String getText() {
		return text;
	}

	/**
	 * @return the macAddressType
	 */
	public PortFeatureType getPortFeatureType() {
		return portFeatureType;
	}

}
